package cn.yy.pojo;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Asset entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "asset", catalog = "phoneerp")
public class Asset implements java.io.Serializable {

	// Fields

	private Integer assetsId;
	private String assetName;
	private Date userYear;
	private Double originalValue;
	private String unit;
	private Double canzhiRate;
	private Double dropValue;
	private Double dropValueRate;
	private Integer year;
	private Double depreciationPrice;
	private Double monthDepreciationPrice;

	// Constructors

	/** default constructor */
	public Asset() {
	}

	/** full constructor */
	public Asset(String assetName, Date userYear, Double originalValue,
			String unit, Double canzhiRate, Double dropValue,
			Double dropValueRate, Integer year, Double depreciationPrice,
			Double monthDepreciationPrice) {
		this.assetName = assetName;
		this.userYear = userYear;
		this.originalValue = originalValue;
		this.unit = unit;
		this.canzhiRate = canzhiRate;
		this.dropValue = dropValue;
		this.dropValueRate = dropValueRate;
		this.year = year;
		this.depreciationPrice = depreciationPrice;
		this.monthDepreciationPrice = monthDepreciationPrice;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "assetsId", unique = true, nullable = false)
	public Integer getAssetsId() {
		return this.assetsId;
	}

	public void setAssetsId(Integer assetsId) {
		this.assetsId = assetsId;
	}

	@Column(name = "assetName", nullable = false, length = 20)
	public String getAssetName() {
		return this.assetName;
	}

	public void setAssetName(String assetName) {
		this.assetName = assetName;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "userYear", nullable = false, length = 10)
	public Date getUserYear() {
		return this.userYear;
	}

	public void setUserYear(Date userYear) {
		this.userYear = userYear;
	}

	@Column(name = "originalValue", nullable = false, precision = 22, scale = 0)
	public Double getOriginalValue() {
		return this.originalValue;
	}

	public void setOriginalValue(Double originalValue) {
		this.originalValue = originalValue;
	}

	@Column(name = "unit", nullable = false, length = 10)
	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	@Column(name = "canzhiRate", nullable = false, precision = 22, scale = 0)
	public Double getCanzhiRate() {
		return this.canzhiRate;
	}

	public void setCanzhiRate(Double canzhiRate) {
		this.canzhiRate = canzhiRate;
	}

	@Column(name = "dropValue", nullable = false, precision = 22, scale = 0)
	public Double getDropValue() {
		return this.dropValue;
	}

	public void setDropValue(Double dropValue) {
		this.dropValue = dropValue;
	}

	@Column(name = "dropValueRate", nullable = false, precision = 22, scale = 0)
	public Double getDropValueRate() {
		return this.dropValueRate;
	}

	public void setDropValueRate(Double dropValueRate) {
		this.dropValueRate = dropValueRate;
	}

	@Column(name = "year", nullable = false)
	public Integer getYear() {
		return this.year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	@Column(name = "depreciation_Price", nullable = false, precision = 22, scale = 0)
	public Double getDepreciationPrice() {
		return this.depreciationPrice;
	}

	public void setDepreciationPrice(Double depreciationPrice) {
		this.depreciationPrice = depreciationPrice;
	}

	@Column(name = "month_depreciation_Price", nullable = false, precision = 22, scale = 0)
	public Double getMonthDepreciationPrice() {
		return this.monthDepreciationPrice;
	}

	public void setMonthDepreciationPrice(Double monthDepreciationPrice) {
		this.monthDepreciationPrice = monthDepreciationPrice;
	}

}